package com.kgcx.coupon.service;

import com.kgcx.coupon.domain.UserPlan;
import com.kgcx.coupon.mapper.UserPlanMapper;
import com.kgcx.coupon.query.UserPlanQuery;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * @author 何凯
 * @version 0.1
 * @description
 * @time 2017/12/26 15:47
 * @since 0.1
 */
@Service
public class UserPlanService {
    @Autowired
    private UserPlanMapper userPlanMapper;

    public void insert(UserPlan record){
        userPlanMapper.insert(record);
    }

    public  void insertByBatch(List<UserPlan> list){
        userPlanMapper.insertByBatch(list);
    }

    public List<UserPlan> selectForList(UserPlanQuery query){
       return  userPlanMapper.selectForList(query);
    }
}
